<!-- --- BEGIN COPYRIGHT BLOCK ---
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
     the Free Software Foundation; version 2 of the License.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU General Public License for more details.

     You should have received a copy of the GNU General Public License along
     with this program; if not, write to the Free Software Foundation, Inc.,
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

     Copyright (C) 2007 Red Hat, Inc.
     All rights reserved.
     --- END COPYRIGHT BLOCK --- -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<TITLE>Review Certificate Revocation List</TITLE>
<script src="/pki/js/jquery.js"></script>
<script src="/pki/js/jquery.i18n.properties.js"></script>
<script src="/pki/js/underscore.js"></script>
<script src="/pki/js/backbone.js"></script>
<script src="/pki/js/pki.js"></script>
<script src="/pki/js/pki-banner.js"></script>
<SCRIPT LANGUAGE="JavaScript"></SCRIPT>

<SCRIPT LANGUAGE="JavaScript" SRC="/ca/ee/cms-funcs.js">

</SCRIPT>

<SCRIPT LANGUAGE="JavaScript" SRC="/ca/ee/helpfun.js">

</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">
//<!--
function checkSubmit(form)
{
    if (form.op[0].checked) {
        if (form.certSerialNumber.value != "") {
            form.certSerialNumber.value =
                trim(form.certSerialNumber.value);
        }
        if (form.certSerialNumber.value != "") {
            if (!isNumber(form.certSerialNumber.value,10)) {
                if (isNumber(form.certSerialNumber.value,16)) {
                    canonicalHex = "0x" +
                        removeColons(stripPrefix(form.certSerialNumber.value));
                    form.certSerialNumber.value = canonicalHex;
                } else {
                    alert("You must enter a valid hexadecimal "+
                          "or decimal certificate serial number.");
                    return false;
                }
            }
        } else {
            alert("You must enter a certificate serial number.");
            return false;
        }

        if (isNegative(form.certSerialNumber.value)) {
            alert("Certificate serial number can only "+
                  "be represented by positive number.");
            return false;
        }
    }
    return true;
}
//-->
</SCRIPT>
</HEAD>


<body bgcolor="#FFFFFF">
<font size="+1" face="PrimaSans BT, Verdana, Arial, Helvetica, sans-serif">
Import Certificate Revocation List
</font><br>

<font size="-1" face="PrimaSans BT, Verdana, Arial, Helvetica, sans-serif">
Use this form to check whether a particular certificate has been revoked or 
to import the latest Certificate Revocation List. 
</font>

<table BORDER=0 CELLSPACING=2 CELLPADDING=2 WIDTH="100%" BACKGROUND="/pki/images/hr.gif" >
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

<br><font size=-1 face="PrimaSans BT, Verdana, sans-serif">
<b>Select one of these actions</b></font>

<FORM action=getCRL method=post onSubmit="return checkSubmit(this)">

<table border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td><input type=RADIO name="op" value="checkCRL" checked></td>
    <td>
      <font size="-1" face="PrimaSans BT, Verdana, sans-serif">
      Check whether the following certificate is revoked</font>
    </td>
  </tr>
    <td></td>
    <td><font size="-1" face="PrimaSans BT, Verdana, sans-serif">
      Certificate serial number:&nbsp;</font>
      <input type=text size=10 MAXLENGTH=99 name="certSerialNumber" value="">
    </td>
  </tr>
  <tr>
    <td><input type=RADIO name="op" value="importCRL"></td>
    <td>
      <font size="-1" face="PrimaSans BT, Verdana, sans-serif">
      Import the latest CRL to your browser</font>
    </td>
  </tr>
  <tr>
    <td><input type=RADIO name="op" value="importDeltaCRL"></td>
    <td>
      <font size="-1" face="PrimaSans BT, Verdana, sans-serif">
      Import the latest delta CRL to your browser</font>
    </td>
  </tr>
  <tr>
    <td><input type=RADIO name="op" value="getCRL"></td>
    <td>
      <font size="-1" face="PrimaSans BT, Verdana, sans-serif">
	  Download the latest CRL in binary form</font>
    </td>
  </tr>
  <tr>
    <td><input type=RADIO name="op" value="getDeltaCRL"></td>
    <td>
      <font size="-1" face="PrimaSans BT, Verdana, sans-serif">
	  Download the latest delta CRL in binary form</font>
    </td>
  </tr>
  <tr>
    <td><input type=RADIO name="op" value="displayCRL"></td>
	<td>
      <font size="-1" face="PrimaSans BT, Verdana, sans-serif">
      Display the CRL information:</font>&nbsp;&nbsp;
      <SELECT NAME="crlDisplayType">
        <OPTION VALUE="entireCRL" SELECTED>Entire CRL
        <OPTION VALUE="crlHeader">CRL header
        <OPTION VALUE="base64Encoded">Base64 encoded
        <OPTION VALUE="deltaCRL">Delta CRL
      </SELECT>
    </td>
  </tr>
</table>


<!-- this could be a text box to support different crl issue point -->
<input type=hidden name=crlIssuingPoint value="MasterCRL">

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="6" bgcolor="#E5E5E5" background="/pki/images/gray90.gif">
  <tr> 
    <td ALIGN=RIGHT>
      <input TYPE="hidden" NAME="pageStart" VALUE="1">
      <input TYPE="hidden" NAME="pageSize" VALUE="50">
      <input type="submit" value="Submit" name="submit" width="72">
    </td>
  </tr>
</table>

</FORM>

</body>
</html>

